﻿using System;
using System.Globalization;
using System.Windows.Data;
using LFSRecord2.Misc;

namespace LFSRecord2.View.Converters
{
    public class SecondsToTimestampConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return TimeHelper.Seconds2TimeStamp((double)value);
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return 0;
        }
    }
}
